package cn.jinjimi.app.entity.AppConfig;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;
import cn.jinjimi.base.preference.PreferenceManager;
import cn.jinjimi.base.util.GsonUtils;
import cn.jinjimi.app.bean.SharePrefKeys;

/**
 * Created by lforxeverc on 2017/1/14.
 */

public class AppCustomersDTO {
    public static Config getConfig(){
        String config = PreferenceManager.getStringData(SharePrefKeys.PREF_CUSTOMERS_CONFIG);
        if(!TextUtils.isEmpty(config)){
            return GsonUtils.fromJson(config,Config.class);
        }
        return null;
    }
    public static class Config{
        @SerializedName("vplan_url")
        String vplanUrl;

        public String getVplanUrl() {
            return vplanUrl;
        }
    }
}
